<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../css/aui/aui.css" />
		<style type="text/css">
		</style>
	</head>
	<body>
		<div id="main" style="width: 100%;height:100%;"></div>
	</body>
	<script type="text/javascript" src="../../../script/echarts.min.js"></script>
	<script type="text/javascript">
		var data = [];
		for (var i = 0; i <= 360; i++) {
			var t = i / 180 * Math.PI;
			var r = Math.sin(2 * t) * Math.cos(2 * t);
			data.push([r, i]);
		}
		option = {
			legend : {
				data : ['line']
			},
			polar : {
				center : ['50%', '54%']
			},
			tooltip : {
				trigger : 'axis',
				axisPointer : {
					type : 'cross'
				}
			},
			angleAxis : {
				type : 'value',
				startAngle : 0
			},
			radiusAxis : {
				min : 0
			},
			series : [{
				coordinateSystem : 'polar',
				name : 'line',
				type : 'line',
				showSymbol : false,
				data : data
			}],
			animationDuration : 2000
		};
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('main'));
		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);
	</script>
</html>